from django.conf.urls.defaults import *
from django.conf import settings
# Uncomment the next two lines to enable the admin:
#from django.contrib import admin
#admin.autodiscover()
from leadership.home.views import *


urlpatterns = patterns('',
    # Example:
    # (r'^wsc/', include('wsc.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
	#(r'^hello/(?P<id>\d+)/' , hello),
	(r'^$', home),
	(r'^rank/(?P<uname>[\w\.]+$)' , rank),
	(r'^rank/(?P<uname>[\w\.]+)/(?P<list_style>\w+$)',rank),
	(r'^get/name/(?P<uname>[\w\.]+$)' , get_name),
	(r'^get/page/(?P<cpage>[0-9]+)/(?P<uname>[\w\.]+$)' , get_page),
	(r'^leader/(?P<uname>[\w\.]+)', leader),
	(r'^follower/(?P<uname>[\w\.]+)',follower),
	(r'^check/(?P<uname>[\w\.]+)' , check),
	(r'^about' , about),
    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
          {'document_root': "./media/"}),
)

'''
if settings.LOCAL_DEVELOPMENT:
	urlpatterns += patterns("django.views",
		url(r"%s(?P<path>.*)/$" % settings.MEDIA_URL[1:], "static.serve", {
			"document_root": settings.MEDIA_ROOT,
			})
	)
'''
